﻿<%@ Page Title="::เข้าสู่ระบบ::" Language="C#" MasterPageFile="../masterpage/HomeSite.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="Login" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../stylesheet/csslogin.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript">
    function VerifyLogin() {
        if (document.getElementById('<%=txtUserID.ClientID %>').value == '') {
            alert('กรุณาระบุรหัสผู้ใช้');
            document.getElementById('<%=txtUserID.ClientID %>').focus();
            return false;
        }
        if (document.getElementById('<%=txtPassword.ClientID %>').value == '') {
            alert('กรุณาระบุรหัสผ่าน');
            document.getElementById('<%=txtPassword.ClientID %>').focus();
            return false;
        }
    }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
    <td align="center">
        <table border="0" cellpadding="0" cellspacing="0" class="myform" id="stylized">
            <tr>  
                <td class="stylizedform">
                    รหัสผู้ใช้ :</td>
                <td class="stylizedinput">
        <asp:TextBox ID="txtUserID" runat="server" Width="200px"></asp:TextBox>
                </td>
            </tr>
            <tr>
               
                <td class="stylizedform">
                    รหัสผ่าน :</td>
                <td class="stylizedinput">
        <asp:TextBox ID="txtPassword" TextMode="Password" runat="server" Width="200px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                
                <td colspan="2">
                    <asp:Button ID="btnLogin" runat="server" Text="Log in" onclick="btnLogin_Click" /> 
                    <asp:LinkButton ID="btnForgetPassword" runat="server" onclick="btnForgetPassword_Click">[ลืมรหัสผ่าน]</asp:LinkButton>
                </td>
            </tr>
        </table>
         <br /><br />
          <table>
            <tr runat="server" id="trMessage" visible="false">
            <td align="center">
            <asp:Label runat="server" ID="lblMessage" BackColor="#FFCCFF" BorderColor="Gray" 
                    BorderStyle="Solid" BorderWidth="1px" Font-Bold="True" Width="400px"></asp:Label>
            </td>
            </tr>
          </table>
    </td>
</tr>
</table>
</asp:Content>
